mTTCleaner does most of the same thing to clean most browsers by cleaning caches, compacting databases, and removing unnecessary metrics files.
It can create it's own cron job/scheduled task to run itself every month, if you choose.
It covers 28 browsers on 3 platforms, assuming you have PowerShell 7+.
Please file any bugs if you find them.
This isn't really going anywhere except to help internet users and my clients.
Hope it's helpful
PS - All of it generated with VS Code, Augmentcode AI (https://www.augmentcode.com/), OpenSpec (https://github.com/Fission-AI/OpenSpec), and beads (https://github.com/gastownhall/beads).