Apparently, Firefox will throw an error during service worker script evaluation if you include

self.addEventListener('periodicsync', (event) => {
  if (event.tag === '...') {
    event.waitUntil(Promise.resolve());
  }
});