export function formatRelativeTime(ts: string): string {
  const diff = Date.now() - new Date(ts).getTime();
  if (diff < 60_000) return 'gerade eben';
  if (diff < 3_600_000) return `vor ${Math.floor(diff / 60_000)}m`;
  if (diff < 86_400_000) return `vor ${Math.floor(diff / 3_600_000)}h`;
  return new Date(ts).toLocaleDateString('de-DE');
}
