(tab)
| 313 | |
| 314 | // https://stackoverflow.com/a/25226679/11898496 |
| 315 | export function focusToTab(tab) { |
| 316 | return chrome.tabs.update(tab.id, { active: true }); |
| 317 | } |
| 318 | |
| 319 | export function closeTab(tab) { |
| 320 | return chrome.tabs.remove(tab.id); |
no test coverage detected