Karl-Anthony Towns dropped a game-high 39 points while Landry Shamet erupted for 36 off the bench as the New York Knicks defeated the Miami Heat 140-132 without Jalen Brunson.