New South Wales has recorded 18 new locally acquired coronavirus cases today, prompting the state to tighten restrictions on Greater Sydney for New Year's Eve.