Question: do you need a transit visa for connecting flights?
Answer: Yes. There is no transit at US airports and you will need to clear both Immigration and Customs at your first point of entry into the US regardless. You will need either an ESTA or a Visa.