Chrome APIsadvanced
Periodic Background Sync for resilient refresh jobs
type PeriodicSyncRegistration = ServiceWorkerRegistration & {
periodicSync: { register: (tag: string, options: { minInterval: number }) => Promise<void> };
};
export const schedulePeriodicRefresh = async (tag: string, minIntervalMs: number): Promise<boolean> => {Schedule light refresh work that can survive transient network loss.