(resetDate: Date | null)
| 6 | * @returns Human-readable string like "2h 30m" or "45m" |
| 7 | */ |
| 8 | export const formatResetTime = (resetDate: Date | null): string => { |
| 9 | if (!resetDate) return '' |
| 10 | return formatTimeUntil(resetDate, { fallback: 'now' }) |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * Format time until reset in human-readable form, including days. |
no test coverage detected