Search is your friend, start here …
Basically, they’re homing switches, enter the machine size in GRBL and enable soft limits to prevent smashing the end stops.