I am a EU national going to the US for a conference. No visa, just the ESTA. When going back to Europe, specifically France, I will have a 17-hour-long layover in Newark: my first flight arrives in Newark at 1am and then my second flight leaves from there at 6pm.
Will it be possible for me to leave the airport and visit NYC? I know that the two cities are pretty close and well-connected, but I never flew outside of the EU so I am not familiar with going through immigration, customs, or generally having to take out my passport and prove my right to be or go anywhere and I don't know if my movement as a foreign national will be restricted while in the US.
I found this website but it's not very clear whether the author's experience was exceptional or if it's normally allowed.