The knife-wielding burglar accused of binding an Upper West Side family with electrical tape during a terrifying home invasion told authorities he was just “chilling” with them, according to newly released court papers.

“I was there for about 2 1/2 hours,”Daniel Omolukun told investigators after he was nabbed for the Jan. 31 attack.

“We were just chilling, talking about things, college, school. I told them my background, my kids. I was on the phone texting, commenting on posts on Facebook,” the career criminal implausibly claimed.

He told authorities a convoluted story about how he was at the West 78 Street apartment near West End Avenue to pick up money for an acquaintance.

“I didn’t tie them up. No one was tied up that entire time,” he insisted.

Prosecutors say Omolukun was loitering in the tony building’s lobby when a mother and her 24-year-old daughter walked inside.

He forced them into their apartment at knife point, bound them with electrical tape and string then demanded their valuables. The young woman’s father showed up a few minutes later and was also tied up, authorities said.

Omolukun pleaded not guilty Thursday in Manhattan Supreme Court to more than 20 counts of burglary, robbery, kidnapping and other charges.

The ex-con is due back in court March 7.