There is no arrivals lounge in JFK for EY. if you have an amex plat or centurian card you cn use their lounge in T4. or if you have loungekey or priority pass etc you can use a ton of lounges around JFK.
and yes, in AUH youll go to the lounge in terminal A first if you arrive early then have a shower there then bus over to the CBP facility in the old terminal and bus to the plane.