Nassau detectives on Thursday arrested an Amityville woman who they said withdrew nearly $4,000 of someone else’s tax refund that had been mistakenly deposited into her credit union account last year.

Crimes Against Property detectives arrested Danielle Jolivert, 42, of Great Neck Road at her home on Thursday, nearly a year after she withdrew $3,796 that had been deposited into her NEFCU account by the Internal Revenue Service on Feb. 25, 2015, police said.

Jolivert had told her accountant that she had received extra money deposited into her NEFCU account from the IRS and, police said in a news release, the “accountant advised the defendant not to spend the money and would look into the deposit.

“It was discovered that another client’s return was filed electronically with the defendant’s bank account and routing number,” the release said.

advertisement | advertise on newsday

But Jolivert withdrew the funds the day after they were deposited and refused to return them, causing another client to lose the refund, police said.

Jolivert is charged with third-degree grand larceny and will be arraigned Friday at First District Court in Hempstead.

Her attorney could not be reached for comment.