Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

298 B
Raw Blame
import { formatDuration as formatDurationMs } from '@lobechat/utils';

export const formatDuration = (ms: number): string => formatDurationMs(ms, { minUnit: 's' });

export const formatDurationMinutes = (ms: number): string => {
  const minutes = Math.round(ms / 60_000);
  return `${minutes}`;
};