So bill is human so everything with Bill in the actual show never happened but everything was weird in gravity falls. After a year being away from gravity falls Mabel and dipper decided to to live in gravity falls with there grunkles reasons in the book also Bill is Pacifica's cousin who came to live with them (that's all no spoilers)