MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / formatResetText

Function formatResetText

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

Source from the content-addressed store, hash-verified

291}
292
293export 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)
303export {

Callers 1

LimitBarFunction · 0.85

Calls 1

formatResetTimeFunction · 0.85

Tested by

no test coverage detected