( billingPeriodStart: Date, now: Date = new Date(), )
| 135 | * Get the end of the current billing-aligned week (start of next week). |
| 136 | */ |
| 137 | export function getWeekEnd( |
| 138 | billingPeriodStart: Date, |
| 139 | now: Date = new Date(), |
| 140 | ): Date { |
| 141 | return addDays(getWeekStart(billingPeriodStart, now), 7) |
| 142 | } |
| 143 | |
| 144 | // --------------------------------------------------------------------------- |
| 145 | // Subscription limits |
no test coverage detected