Chrome's native tab groups did not solve my problem. Neither did the memory saver. My problem was simpler and dumber: I keep forty tabs open because I am afraid of losing them, and forty tabs cost me about two gigabytes of RAM and all of my attention.
So I built an extension that does one thing: it takes every tab in the current window, writes the URLs into local storage, closes the tabs, and shows them back as one scrollable column. One click in, one click out. It is 136,138 bytes across 69 files, uses four permissions, and makes zero network requests.
This post is the engineering part: the ordering that keeps you from losing data, the normalization layer, the undocumented field I had to support, and the MV3 service-worker traps that cost me a weekend.
The constraint list
I set the budget before writing the code, because a tab manager that itself eats memory is a joke:
Constraint Value
Permissions tabs , storage , contextMenus , alarms
Network none, no host permissions, no remote code
Package 136 KBβ¦