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