Unable to split background.ts to separate files

I am unable to split my background.ts file to separate files. I want it to be cleaner, but it seems that something in my implementation is causing service worker crashes. How can I fix it, and what are recommended practices?
Was this page helpful?