Solanum americanum serves as a promising source of resistance genes against potato late blight and is considered as a leafy vegetable for complementary food and nutrition. The limited availability of high-quality genome assemblies and gene annotations has hindered the exploration and exploitation of stress-resistance genes in S. americanum. Here, we present a chromosome-level genome assembly of a thermotolerant S. americanum ecotype and identify a crucial heat-inducible transcription factor gene, SaHSF17, essential for heat tolerance. The CRISPR/Cas9 system-mediated knockout of SaHSF17 results in remarkably reduced thermotolerance in S. americanum, exhibiting a significant suppression of multiple HSP gene expressions under heat treatment. Furthermore, our transcriptome analysis and anthocyanin component investigation of fruits indicated that delphinidins are the major anthocyanins accumulated in the mature dark-purple fruits. The accumulation of delphinidins and other pigment components during fruit ripening in S. americanum coincides with the transcriptional regulation of key genes, particularly the F3’5’H and F3’H genes, in the anthocyanin biosynthesis pathway. By integrating existing knowledge, the development of this high-quality reference genome for S. americanum will facilitate the identification and utilization of novel abiotic and biotic stress-resistance genes for improvement of Solanaceae and other crops.© 2024. The Author(s), under exclusive licence to Springer-Verlag GmbH Germany, part of Springer Nature.