Life in the Cosmos: From Biosignatures to Technosignatures