As far as I can tell, the Trenitalia Pass is only valid on Freccia, FrecciaLink, InterCity, InterCity Night, and EuroCity trains within Italy. The train from Milan to Tirano is a regional train operated by Trenord, so does not qualify for the Trenitalia Pass.