Regenerate Grub after Windows install

From this link

They are suggesting mounting the partition EFI (that windows created) and mount the root linux partition.

sudo mount /dev/nvme0n1p5 /mnt

sudo mount /dev/nvme0n1p1 /mnt/boot/efi

but I’m not sure that helps. WDYT?