Note: You need to have wmctrl and xdotool installed in your system. If Firefox for Android won't close all tabs on exit again, can I at least have it open a new tab when I re-open it Even Chrome does that. If you don't have ~/.bash_aliases replace ~/.bash_aliases in the above commands with ~/.bashrcĪnd it will close Firefox’s current tab instantaneously. You can make an alias for the above commands, say the alias name be cfct ( Close Firefox Current Tab) in ~/.bashrc or better in ~/.bash_aliases from a terminal as, echo -e '\nalias cfct='wmctrl -a firefox xdotool key Ctrl+w wmctrl -r firefox -b add,shaded'' > ~/.bash_aliases To know more about these see man xdotool and man wmctrl Shade a window with a title that contains the word 'firefox' in it. Send the keystroke Ctrl+ W to firefox which is the shortcut to close current tab in firefox. Go to the window with a name containing 'firefox' in it You can even close each tab quickly through the Firefox tab manager. So whether they’re normal tabs or private tabs, all you need to do is to tap the Tabs icon on the toolbar.
To keep Firefox minimized after closing its current tab (according to OP, see the comment) use the following commands in a terminal, wmctrl -a firefox xdotool key Ctrl+w wmctrl -r firefox -b add,shaded Firefox for Android has this option where you can easily view and manage all of your open tabs.