I periodically take firefox's recovery.jsonlz4 and pipe it through a bunch of jq to export it as a datestamped bookmarks-$(date ...).org file. Right now I have 15 windows and 5351 tabs. Then I close all but the windows I have actually looked at in the last month.