Add-on Request (Minimize memory usage)

Need a button to automate this sequence: new tab→about:memory→Minimize memory usage→close tab. An additional option would be nice to run this in the background whenever all tabs are closed (with browser configured to remain open).