MCPcopy Index your code
hub / github.com/codeaashu/claude-code / formatResetText

Function formatResetText

src/utils/format.ts:291–298  ·  view source on GitHub ↗
(
  resetsAt: string,
  showTimezone: boolean = false,
  showTime: boolean = true,
)

Source from the content-addressed store, hash-verified

289}
290
291export 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)
301export {

Callers 1

LimitBarFunction · 0.85

Calls 1

formatResetTimeFunction · 0.85

Tested by

no test coverage detected