See: https://wiki.archlinux.org/title/GRUB#Installation — for me, that command is:
grub-install --target=x86_64-efi --efi-directory=/esp --bootloader-id=Grub
--efi-directory is where the ESP partition is mounted. For me, /esp. --bootloader-id corresponds to the directory under /esp/EFI where Grub is, so just Grub as we put Grub at /esp/EFI/Grub.
See: https://wiki.archlinux.org/title/GRUB#Configuration
grub-mkconfig -o /boot/grub/grub.cfg
Exactly the same as the wiki.