NSW residents are being warned to take appropriate steps as they prepare for a heatwave that is set to last into the weekend.