Thiol S-methyltransferase that catalyzes the transfer of a methyl group from S-adenosyl-l-methionine to hydrogen sulfide and other thiol compounds including dithiothreitol, 7alpha-thiospironolactone, L-penicillamine, and captopril. {ECO:0000250|UniProtKB:Q6UX53}.