Skip to content

sindresorhus/kill-tabs

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

kill-tabs

Kill all Chrome tabs to improve performance, decrease battery usage, and save memory

Works on macOS, Linux, Windows.

I'm a tab-abuser and I use this once in a while to prevent Chrome from taking up all system resources.

When you run kill-tabs the Chrome tab processes are killed, which means they will no longer take up system resources, but they will still be in your Chrome window, just as crashed. When you want one back you just reload the tab.

CLI

npm install --global kill-tabs
$ kill-tabs --help

  Usage
    $ kill-tabs

  Options
    --no-chromium  Don't kill tabs in Chromium
    --no-chrome    Don't kill tabs in Chrome
    --no-brave     Don't kill tabs in Brave
    --no-edge      Don't kill tabs in Edge

API

npm install kill-tabs
import killTabs from 'kill-tabs';

await killTabs();
console.log('Killed tabs');

Tip

You can use the Reload All Tabs Chrome extension to easily reload all the tabs.

About

Kill all Chrome tabs to improve performance, decrease battery usage, and save memory

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published