You can download this extension from the VS Marketplace
This is a copy of the CloseTabsToRight extension made by billprat.
It has been adapted to work with Visual Studio 2022.
- Close tabs on the right of the selected document
- Close tabs on the left of the selected document