Superconductor to insulator transition in wafer-scale NbSe2