NSW hit with heat before cooling storms