I got a requirment from client that temporary tabs needs to be closed by clicking a button in home page. So after clicking that button all the temporary tabs as like in the below needs to be closed
I tried a lot and found that workspace API can do this but unfortunaletly workspace API will work for console apps and not normal lightning Apps.
So finding a way to acheive that all temp tabs needs to be closed in Ligtning apps using aura or LWC