Snake plants don't require a ton of light, but they need lots of indirect sunlight. Whether you put it near a window or not, make sure that your snake plant isn't next to a heater because that will also cause its leaves to start turning yellow and dying. Although snake plants can survive with as little as 2 hours of light each day, they'll grow faster if they get closer to 8-10 hours of sunlight per day. If your snake plant's leaves are turning yellow or the edges are starting to brown, then it means it's getting too much direct sunshine. Try moving it into a darker area and see how it does from there.