/** Format seconds as m:ss. Shared by the media player and the player queue. */ export function fmt(s: number): string { if (!isFinite(s)) return "0:00"; const m = Math.floor(s / 60); const sec = Math.floor(s % 60); return `${m}:${sec.toString().padStart(2, "0")}`; }