Abstract: Described herein are compounds of Formula (XVII) that are TYK2 inhibitors, methods of making such compounds, pharmaceutical compositions and medicaments comprising such compounds, and methods of Using such compounds in the treatment of conditions, diseases, or disorders that would benefit from modulation of TYK2 activity.