Firefox Extension: newtab scripts

Hello,
I have been trying to add my plugin to Firefox
(Source: https://github.com/AlexFlipnote/homepage)

However, I can’t seem to figure out how to add background scripts to a newtab override page.
Are there any possibility that I am doing something wrong?

Hello,

I’m not sure you fully understand the anatomy of extensions, please make sure to check the MDN:

When you override new tab page, your HTML file will be loaded instead and it can load some JavaScript files that will run in that single tab.

The background scripts are independent - they start with browser in the background and stays loaded the whole time - that makes them suitable for example for storing a state or other “singleton” like tasks.

Also make sure to define background scripts in the right order.