({ count, tab })
| 324 | return selectTab("last", request); |
| 325 | }, |
| 326 | async removeTab({ count, tab }) { |
| 327 | await forCountTabs(count, tab, (tab) => { |
| 328 | // In Firefox, Ctrl-W will not close a pinned tab, but on Chrome, it will. We try to be |
| 329 | // consistent with each browser's UX for pinned tabs. |
| 330 | if (tab.pinned && bgUtils.isFirefox()) return; |
| 331 | chrome.tabs.remove(tab.id); |
| 332 | }); |
| 333 | }, |
| 334 | restoreTab: createRepeatCommand(async (request) => { |
| 335 | await chrome.sessions.restore(null); |
| 336 | }), |
nothing calls this directly
no test coverage detected