WebExtension is shut down every few minutes with manifest V3

WebExtension is shut down every few minutes with manifest V3.
I use host.tabs.onCreated.addListener to fire it.
How avoid to shut down?

There are no persistent background scripts anymore in the MV3.
So your background script will be shut down after few seconds of inactivity and than re-executed when some event listener fires:

This is the biggest reason why I think Manifest V3 was not ready for launch. There are a lot of features, like ports, that no longer work correctly because they depend on the persistence of the background script.