<apex:page lightningStylesheets="true">
    <script type="text/javascript">
        window.close();
    </script>
</apex:page>