Close plotly tab on google chrome browser

I am working with Plotly on Python. I have a loop the opens the plotly chart on a google chrome browser tab. I am trying to find a way to close the tab that is opened by plotly at the end of the loop. Each loop should open a new chart and close it at the end. Can someone show me how to close the tab opened by the plotly chart. I donโ€™t want it to keep opening more tabs each loop