Three off-duty cops rescued a man who suffered a heart attack while competing in a bowling league tournament on Staten Island, cops said Tuesday.

The trio jumped into action around 6 p.m. after watching the fellow roller collapse at Rab’s Country Lanes on Hylan Boulevard, police said.

Each member of the dynamic trio took a role in reviving the ailing man, using resuscitation devices available at the bowling alley, police said.

The victim, an unidentified man in his 60s, was taken to Staten Island University Hospital and is in stable condition.