Cron job to consistently reboot a VM on TrueNAS CORE

Simple question.

Can reboot the VM from within the VM via cron but if it crashes (And CORE VMs can and do crash far more than most hypervisors, so be it, I’m used to it)

I’ve discovered the command “virsh reboot” but the command seems to rely on entering a number which regularly changes (is it a PID?)

So how do I consistently reboot my VM at about 6am, anyone know?

Please and thanks to anyone who can help.