Lithium-sulfur batteries are promising candidates for replacing common lithium-ion batteries in electric vehicles since they are cheaper, weigh less, and can store nearly double the energy for the same mass. However, lithium-sulfur batteries become unstable over time, and their electrodes deteriorate, limiting widespread adoption.