JSFiddle - React, Tailwind, and code Playground

JavaScript

var w=window.open()
setTimeout(function() {w.close()},500)