how do I reinstall windows defender?

like a month or two ago I tired to uninstall windows defender with a tool. this one: https://github.com/jbara2002/windows-defender-remover

but I regret it since it also removed all the security components from windows and that won't let me update windows anymore. so yeah I wanna know if I can reinstall windows defender again or should I reinstall the OS?