A man who was responsible for buying office supplies for the Staten Island District Attorney’s Office was busted for using the funds to purchase video games, comic books, jewelry and camping gear.

Bill Nelson, who was the procurement director for the office, was arrested on charges of grand larceny for stealing more than $50,000 in goods over 10 years, District Attorney Michael McMahon said Tuesday.

“These are funds that were meant to make Staten Island safer; to fight the opioid crisis, the surge in domestic violence, and the use of illegal guns,” McMahon said in a statement.

“Instead they were allegedly used for personal indulgences in extravagant amounts.”

Nelson was hired under the borough’s former district attorney, now-Congressman Dan Donovan.

McMahon’s team discovered the unauthorized spending when they took office in January 2016.

It was then reported to the Department of Investigations, which led to Nelson’s arrest.