( resetsAt: string, showTimezone: boolean = false, showTime: boolean = true, )
| 289 | } |
| 290 | |
| 291 | export function formatResetText( |
| 292 | resetsAt: string, |
| 293 | showTimezone: boolean = false, |
| 294 | showTime: boolean = true, |
| 295 | ): string { |
| 296 | const dt = new Date(resetsAt) |
| 297 | return `${formatResetTime(Math.floor(dt.getTime() / 1000), showTimezone, showTime)}` |
| 298 | } |
| 299 | |
| 300 | // Back-compat: truncate helpers moved to ./truncate.ts (needs ink/stringWidth) |
| 301 | export { |
no test coverage detected