Artemi Panarin picked up his third hat trick of the season while also hitting the 40-goal milestone for the first time in his career and Adam Fox added a goal and an assist as the New York Rangers defeated the Boston Bruins 5-2.