To kill a process by name, rather than job number or PID, you can use pkill. For example, this will kill all open VSCode instances.

pkill code

Today I accidentally turned on the Redshift program, and it was flickering annoyingly. I started to look for a solution online, but then remembered:

pkill redshift

Problem solved. Use this power wisely.