Lightning Record Page Component, Utility Bar Component
Installation - Install in Production
Sandbox - Install in a Sandbox
Source Code - Source code repository
Created by Eric Smith - August 2018
This is a generic Lightning Component that can be used in a Page Layout or on a Utility Bar.
It will close any open tabs and sub-tabs in a console application.
I wrote this component to solve the issue raised in this idea:
Lightning Console: Close all tabs option
The component takes a single parameter: Close Pinned Tabs?
The default is false, which will leave any pinned tabs open. If set to true, then all tabs will be closed.
When adding this component to a Utility Bar, I set:
Select Close Tabs from the Utility Bar and press the Close Tabs button