I do this too; have you found effective ways to tell firefox to maybe chill on eating all memory? I find if I don't restart ~1/week, it will end up reserving ~32GB of RAM for itself, which is just absurd.
https://addons.mozilla.org/en-US/firefox/addon/auto-tab-disc...
I tell it to never discard certain tabs, like gmail or snack or calendar. Also in some situations it's very convenient to ask it to discard tabs in all other windows, or all tabs but the current one. Otherwise it just discards tabs after some time of inactivity.
It integrates with TST and can operate in terms of subtrees.