export const filterTodayTimestamps = (timestamps: number[]): number[] => { const now = new Date(); const todayStart = new Date(now.getFullYear(), now.getMonth(), now.getDate()).getTime(); const todayEnd = todayStart + 24 * 60 * 60 * 1000; return timestamps.filter((timestamp) => timestamp >= todayStart && timestamp < todayEnd); };