Edit: Closing the current window isn’t available directly in Velo but something like this can be done with a button in a custom element:
As for clearing browser history you can adapt that example to use: history.deleteAll() - Mozilla | MDN
You can also request these features for the specific functionality you need to be supported natively on the roadmap here: Product Roadmap