(timestamps: number[], end_date: string): { start_date: string; daily_counts: number[]; } | null import {daily_counts_from_timestamps} from '@fuzdev/fuz_ui/project_stats.js'; Buckets commit timestamps into daily counts from the earliest commit's UTC
day through end_date, inclusive.
timestamps
commit times as Unix epoch seconds
number[]end_date
UTC date (YYYY-MM-DD) of the final bucket; later timestamps clamp into it
stringreturns
{ start_date: string; daily_counts: number[]; } | null
the start date and daily counts, or null if timestamps is empty