How to close current LEX Console subtab?

I did notice these APIs and methods, but wasn’t able to get the Id for the tab.