MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / formatResetTime

Function formatResetTime

cli/src/utils/time-format.ts:8–11  ·  view source on GitHub ↗
(resetDate: Date | null)

Source from the content-addressed store, hash-verified

6 * @returns Human-readable string like "2h 30m" or "45m"
7 */
8export 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.

Callers 2

SubscriptionUsageSectionFunction · 0.90
SubscriptionLimitBannerFunction · 0.90

Calls 1

formatTimeUntilFunction · 0.90

Tested by

no test coverage detected