How to switch among different tabs and close the tabs in Chrome?

I want to close the tabs open in the single page web application. Below is a screenshot for reference.

Use Window handlers in selenium