Documentation Index
Fetch the complete documentation index at: https://mintlify.com/adalidbori/Tab-Closer-Ext/llms.txt
Use this file to discover all available pages before exploring further.
Installing Tab Closer
Tab Closer can be installed through the Chrome Web Store or manually loaded as an unpacked extension for development purposes.Chrome Web Store Installation
Visit the Chrome Web Store
Navigate to the Tab Closer extension page in the Chrome Web Store.
This is the recommended installation method for most users, as updates will be automatically delivered.
Add to Chrome
Click the Add to Chrome button in the top right corner of the extension page.Chrome will display a permission prompt showing the permissions Tab Closer requires:
- tabs - To monitor and close tabs
- storage - To save your preferences
Confirm Installation
Click Add extension in the permission dialog to complete the installation.The Tab Closer icon will appear in your Chrome toolbar.
Manual Installation (Developer Mode)
If you’re developing the extension or want to install it from source, follow these steps:Download the Source Code
Download or clone the Tab Closer source code to your local machine.Ensure you have all the necessary files:
manifest.jsonbackground.jspopup.htmlscript.jsstyle.cssimages/directory with icon assets
Enable Developer Mode
Open Chrome and navigate to the extensions page:Toggle the Developer mode switch in the top right corner.
Load the Extension
Click the Load unpacked button that appears after enabling Developer mode.Browse to the directory containing the Tab Closer source files and select it.
Verify Installation
The extension should now appear in your extensions list with the Tab Closer icon and details:
- Name: Tab Closer
- Version: 1.0.1
- Description: Chrome Extension to close all tabs you are not using.
Manually loaded extensions will display a “Unpacked” label to distinguish them from Web Store installations.
Initial Configuration
Once installed, configure Tab Closer to match your preferences:Open the Extension Popup
Click the Tab Closer icon in your Chrome toolbar to open the configuration popup.The popup displays the following interface:
Enable Automatic Tab Management
Toggle the switch at the top of the popup to enable or disable automatic tab closing.
- Enabled (default): Tab Closer will automatically manage your tabs
- Disabled: Tab Closer will not close any tabs
The toggle state is saved using Chrome’s local storage API and persists across browser sessions.
Set Your Tab Limit
Enter the maximum number of tabs you want to keep open in the number input field.Requirements:
- Minimum value: 2 tabs
- Must be a positive integer
Save Your Settings
Click the Save button to persist your configuration.A green “Saved!” confirmation message will appear when your settings are successfully stored.
Your settings are stored locally and will be applied immediately. The background service worker will begin monitoring tab creation based on your configuration.
Verifying Installation
To confirm Tab Closer is working correctly:- Check the extension is enabled - Ensure the toggle in the popup is switched on
- Set a low tab limit - Try setting the limit to 3 or 4 tabs for testing
- Open multiple tabs - Open more tabs than your configured limit
- Observe automatic closing - The oldest tabs should automatically close when you exceed your limit
Tab Closer uses a background service worker to monitor tab events. The service worker activates when tabs are created:
Troubleshooting
Extension Not Closing Tabs
Possible causes:
- The toggle switch is disabled - enable it in the popup
- Tab limit is set too high - verify your configured limit
- Settings weren’t saved - click Save after making changes
Cannot Set Tab Limit Below 2
This is intentional behavior. Tab Closer requires a minimum of 2 tabs to prevent closing all your tabs accidentally.The validation is enforced in the save function at
/home/daytona/workspace/source/script.js:9.Extension Icon Not Visible
Solution: The extension may be hidden in the extensions menu. Click the puzzle piece icon in your toolbar and pin Tab Closer for easy access.
Settings Not Persisting
Possible causes:
- Storage permissions issue
- Browser storage quota exceeded
- Check that the extension has storage permissions at
chrome://extensions - Try clearing browser storage and reconfiguring
- Reinstall the extension if the issue persists
Manifest Configuration
Tab Closer is built with Chrome Extension Manifest V3:Manifest V3 is the latest version of Chrome’s extension platform, offering improved security, privacy, and performance compared to Manifest V2.
Next Steps
Now that Tab Closer is installed and configured, you can:- Adjust your tab limit based on your browsing habits
- Toggle the extension on/off as needed for different workflows
- Experiment with different limits to find your optimal setting
Tab Closer works silently in the background. You can browse normally, and older tabs will be automatically closed when you exceed your configured limit.