I found a useful utility for EndeavourOS to edit the GRUB file. It's called grub-customizer and can be easily installed via pacman. It's also available for other distros.
If you're interested:
https://linuxconfig.org/how-to-install-grub-customizer-on-linux-all-major-distros