I have the opposite problem of Is it possible to leave Firefox open when closing its only tab?
Basically I am using firefox 100 on mac os, coming from windows and linux. I also make use of the containers and of the extension simple tab groups.
When firefox quits all of the opened tabs (and the ones hidden in the other groups) are saved and restored when restarted.
Unfortunately mac os has some "ideas" on when actually quit a running application. I "learned" to just ignore the red button, as its behavior basically depends on the mood of the application developers that day.
But I really need to have a way to tell firefox/mac os that, when I close the last tab opened firefox must totally quit, not just "hide the ui", as, with current behavior, I just lose all the tabs in the other groups.