Yes, there is medicine for negative thinking that helps to various degrees (SSRIs do work), but they have issues and unfortunately we don't have any magic bullets.