Hi Jay
This can be done using window.close() in js, Add a button or logic in the page that was opened by using window.open(url, "_blank");
.Use window.close() in a JavaScript action there.
Note: This works because the tab was opened by script. if you open a tab with script then you can close it via a script.
I hope this help's a lot