Function: recentCompletedWeeks()
recentCompletedWeeks(
asOf,count,weekStartsOn?):WeekRange[]
Defined in: src/lib/calendar/index.ts:100
The most recent fully-completed weeks as of asOf, newest first. A week is only offered once its
last day has passed (the in-progress week containing asOf is excluded). Defaults to the unified
'monday' (ISO Mon→Sun) week that billing AND pay now key on (ADR-0044); 'sunday' (Sun→Sat)
remains only for legacy callers. start/end are the week's first and last day under that boundary.
Parameters
asOf
count
number
weekStartsOn?
"monday" | "sunday"