(remainingMs: number)
| 58 | } |
| 59 | |
| 60 | function formatCountdown(remainingMs: number): string { |
| 61 | if (remainingMs <= 0) return 'exp'; |
| 62 | const mins = Math.floor(remainingMs / 60_000); |
| 63 | const secs = Math.floor((remainingMs % 60_000) / 1000); |
| 64 | return `${padTwo(mins)}:${padTwo(secs)}`; |
| 65 | } |
| 66 | |
| 67 | type CachePillProps = { |
| 68 | messages: Message[]; |