Williams, an athletic 6-foot-7 wing, has averaged 8.1 points and 2.9 rebounds in 13.9 minutes per game in eight appearances for the Knicks. His second 10-day contract with the team expired on Monday, and the Knicks worked with Williams’ agent, Stephen Pina, to finalize a deal to keep the 23-year-old from entering the offseason as a free agent.

Williams is in his second NBA season after going undrafted in 2016 out of Indiana. He joined the Knicks after being released by the Houston Rockets to create roster space for Joe Johnson.